<template>
    <div>
        username <input @input="$emit('input',$event.target.value)" type="text" :value="value">{{ value }}

        <!-- <button @click="$emit('input')">click</button> -->
    </div>
</template>
<script>
export default {
    
    props: ['value'],
    created() {
        this.$emit('input')
    }
}
</script>
<style></style>